home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / commands / plongcommand.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-15  |  1.2 KB  |  44 lines

  1. /*
  2.  *--- PLongCommand.h -------------------------------------------
  3.  * Copyright (c) 1995 Adobe Systems, Inc.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:53 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *--------------------------------------------------------------
  8.  */
  9. #ifndef __PLongCommand__
  10. #define __PLongCommand__
  11.  
  12. #ifndef __PCommand__
  13.     #include "PCommand.h"
  14. #endif
  15.  
  16. template <ePMCommand COMMAND>
  17. class PLongCommand
  18. {
  19.  
  20. public:
  21.  
  22.     PLongCommand(long theLong) { PCommand command(COMMAND, theLong); }
  23.  
  24. private:
  25.  
  26.     PLongCommand();
  27. };
  28.  
  29. typedef PLongCommand<pm_changeenv>            PChangeEnv;
  30. typedef PLongCommand<pm_cropimageatframe>    PCropImageAtFrame;
  31. typedef PLongCommand<pm_deletehoriz>        PDeleteHoriz;
  32. typedef PLongCommand<pm_deletevert>            PDeleteVert;
  33. typedef PLongCommand<pm_guidehoriz>            PGuideHoriz;
  34. typedef PLongCommand<pm_guidevert>            PGuideVert;
  35. typedef PLongCommand<pm_mask>                PMask;
  36. typedef PLongCommand<pm_openstory>            POpenStory;    // should be unsigned long
  37. typedef PLongCommand<pm_selectid>            PSelectID;
  38. typedef PLongCommand<pm_selectidextend>        PSelectIDExtend;
  39. typedef PLongCommand<pm_unselectid>            PUnselectID;
  40.  
  41. #endif
  42.  
  43. // end of PLongCommand.h
  44.